Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use full path in the enrollment failure urls #5

Conversation

tecoholic
Copy link
Member

The enrollment failure URLs were using the React Router's location.pathname, which omits the basename when the MFE is deployed in a sub-directory. This commit instead uses the global.location.pathname (browser location api) to make sure that the full path including the sub-directory is used.

Screenshot showing the different between the 2 location objects

pathname

For all changes

  • Ensure adequate tests are in place (or reviewed existing tests cover changes)

Only if submitting a visual change

  • Ensure to attach screenshots
  • Ensure to have UX team confirm screenshots

The enrollment failure URLs were using the React Router's
location.pathname, which omits the basename when the MFE is
deployed in a sub-directory. This commit instead uses the
global.location.pathname (browser location api) to make sure
that the full path including the sub-directory is used.
@tecoholic
Copy link
Member Author

Included in #6

@tecoholic tecoholic closed this May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant